@import "~@/assets/scss/mixin.scss";

.container {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 1000px;
  display: flex;
  flex-direction: column;
  background: #eceef1;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;

  @include clear;
}

.wrapper {
  padding: 30px 0 56px;
  background: url("~@/assets/images/download/background_image.png") no-repeat center -188px;
  background-size: contain;
}

.logo {
  margin-left: 30px;
  width: 252px;
}

.group {
  margin-top: 20px;
  width: 750px;
}

.downButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 470px;
  height: 84px;
  margin: 26px auto 0;
  background: linear-gradient(139deg, #f7ce74 0%, #9f7b22 100%);
  color: #82470b;
  font-size: 28px;
  font-weight: 600;
  border-radius: 42px;
}

.swiperContainer {
  margin-top: 56px;
  overflow: hidden;
}

.swiperWrapper {
  display: flex;
}

.swiperItem {
  padding: 0 12px;
  text-align: center;
  transition: 300ms;
  transform: scale(0.88) translateY(36px);

  .title {
    margin-bottom: 10px;
    font-size: 48px;
    font-weight: 600;
    background: linear-gradient(180deg, #f7ce74 0%, #9f7b22 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 66px;
  }

  .label {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    line-height: 34px;
  }

  img {
    width: 306px;
    margin-top: 30px;
  }
}

.swiperItemActive,
.swiperItemDuplicateActive {
  transform: scale(1);
}

.course {
  margin-top: 72px;

  .courseTitle {
    text-align: center;

    span {
      background: linear-gradient(139deg, #f7ce74 0%, #9f7b22 100%);
      background-clip: text;
      -webkit-text-fill-color: transparent;
      font-size: 36px;
      font-weight: 600;
      line-height: 50px;
    }

    .icon {
      margin-right: 10px;
      background: linear-gradient(139deg, #f7ce74 0%, #9f7b22 100%);
      background-clip: text;
      -webkit-text-fill-color: transparent;
      font-size: 38px;
    }
  }

  .courseSub {
    width: 685px;
    margin: 20px auto 40px;
    font-size: 24px;
    font-weight: 400;
    color: #333;
    line-height: 34px;
  }

  .courseItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 670px;
    margin: 30px auto 0;
    padding: 48px 0 20px;
    background: #fff;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.09);
    border-radius: 20px;

    .badge {
      box-sizing: border-box;
      display: inline-block;
      position: absolute;
      left: 0;
      top: 0;
      width: 70px;
      height: 60px;
      padding-left: 18px;
      background: url("~@/assets/images/download/badge_icon.png") no-repeat left top;
      background-size: 100%;
      color: #fff;
      font-size: 36px;
      font-weight: 600;
      font-style: normal;
      line-height: 50px;
    }

    .courseLabel {
      display: block;
      max-width: 520px;
      margin-bottom: 28px;
      font-size: 24px;
      font-weight: 500;
      color: #333;
      line-height: 34px;
      white-space: pre-wrap;

      .highlight {
        color: #dab500;
      }
    }

    img {
      height: 460px;

      &+img {
        margin-left: 16px;
      }
    }
  }
}

.safariPopover {
  width: 80%;
  height: 350px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  z-index: 1;

  .top {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 40px;
    height: 220px;
    background: linear-gradient(to right, #69bcf8, #5aa0f6);
    color: #fff;

    .icon {
      width: 120px;
      height: 120px;
    }

    .text {
      display: inline-block;
      margin-left: 60px;
      line-height: 1.5;

      .red {
        color: #9b1515;
        font-weight: bold;
      }
    }
  }

  .bottom {
    box-sizing: border-box;
    padding: 25px 40px;
    height: 130px;

    .content {
      display: flex;
      justify-content: center;
    }

    .input {
      padding: 0 20px;
      border: none;
      height: 80px;
      border-top-left-radius: 25px;
      border-bottom-left-radius: 25px;
      background: rgb(239, 239, 239);
      width: 65%;
    }

    .button {
      border: none;
      height: 80px;
      border-top-right-radius: 25px;
      border-bottom-right-radius: 25px;
      font-size: 28px;
      background: linear-gradient(to right, #69bcf8, #5aa0f6);
      color: #fff;
      padding: 0 40px;
    }
  }
}

.loading {
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 10px;
  background: transparent;
  border: 2px solid #fff;
  border-top: 2px solid #82470b;
  border-left: 2px solid #82470b;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.gife {
  width: 710px;
  height: 1334px;
  background: linear-gradient(83deg, rgba(247, 206, 116, 1) 0%, rgba(159, 123, 34, 1) 100%);
  border-radius: 23px;
  margin: 0 auto;
  margin-top: 70px;
  margin-bottom: 50px;
  box-sizing: border-box;
  padding: 0 20px;
  padding-bottom: 36px;

  .gife_content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    width: 100%;

    p {
      font-size: 44px;
      font-family: HYb0gj;
      color: #fff;
      text-shadow: 2px 2px 0 rgba(94, 78, 0, 1);
      -webkit-background-clip: text;
    }

    .gife_list {
      display: grid;
      grid-template-columns: repeat(2, 268px);
      width: 100%;
      background-color: #fff;
      border-radius: 23px;
      grid-gap: 32px 56px;
      padding-left: 40px;
      box-sizing: border-box;
      padding-top: 26px;
      padding-bottom: 78px;

      img {
        width: 268px;
        margin-bottom: 18px;
      }

      span {
        font-size: 20px;
        font-family: PingFangSC-Semibold;
        font-weight: 600;
        color: rgba(0, 0, 0, 1);
      }

      >span {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;

        >span {
          &:last-child {
            margin-top: 8px;
          }
        }
      }
    }
  }
}


.iswechartTip {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;

  .right {
    background-image: url("../../assets/images/jian.png");
    width: 100px;
    height: 100px;
    background-position: center;
    background-size: 100% 100%;
    position: absolute;
    right: 20px;
    top: 0;
  }

  >p {
    font-size: 28px;
    color: #fff;
    position: absolute;
    right: 130px;
    letter-spacing: 2px;
    top: 50px;
  }
}

.showBrowser {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;

  >div {
    width: 618px;
    height: 376px;
    background: #FFFFFF;
    border-radius: 20px;
    box-sizing: border-box;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    >p {
      font-size: 32px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #333333;
      margin: 0;
    }

    >i {
      font-size: 28px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #666666;
      font-style: normal;
      line-height: 40px;
      width: 100%;
      box-sizing: border-box;
      padding: 0 76px;
      text-align: center;
      text-align-last: center;
      margin-top: 48px;
    }

    >div {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      box-sizing: border-box;
      margin-top: auto;
      border-top: 1px solid #F5F5F5;
      border-radius: 20px;

      >span {
        width: 50%;
        background-color: #fff;
        height: 106px;
        border-radius: 20px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;

        &:first-child {
          font-size: 32px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #333333;
          border-right: 1px solid #F5F5F5;
        }

        &:last-child {
          font-size: 32px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #F70900;
        }
      }
    }
  }
}